package com.jinhongone.pattern.behavior.responsibility;

/**
 * @author jinho
 * @className LeaveRequest
 * @description 请假请求体
 * @date 2025/4/14 10:09
 */
public class LeaveRequest {
    //请假人
    private String name;
    //请假天数
    private int days;
    //请假原因
    private String cause;

    //不提供set方法，使用构造函数进行赋值
    public LeaveRequest(String name, int days, String cause) {
        this.name = name;
        this.days = days;
        this.cause = cause;
    }

    public String getName() {
        return name;
    }

    public int getDays() {
        return days;
    }

    public String getCause() {
        return cause;
    }
}
